<template>
  <div class="css2_10">
      <h1>2.10 综合实例</h1>
      <p>
          <pre>
              Html部分：
&lt;body>
    &lt;div class="top-bar-wrapper">
        &lt;div class="top-bar">
            &lt;div class="left-menu">
                &lt;ul class="menu-icon">
                    &lt;li>&lt;/li>
                    &lt;li>&lt;/li>
                    &lt;li>&lt;/li>
                &lt;/ul>
                &lt;ul class="nav">
                    &lt;li>&lt;a href="#">手机&lt;/a>&lt;/li>
                    &lt;li>&lt;a href="#">手机&lt;/a>&lt;/li>
                    &lt;li>&lt;a href="#">手机&lt;/a>&lt;/li>
                    &lt;li>&lt;a href="#">手机&lt;/a>&lt;/li>
                    &lt;li>&lt;a href="#">手机&lt;/a>&lt;/li>
                    &lt;li>
                        &lt;a href="#">&lt;i class="fa fa-search">&lt;/i>&lt;/a>
                        &lt;span>搜索 Meitu.com&lt;/span>
                    &lt;/li>
                &lt;/ul>
            &lt;/div>
            &lt;div>
                &lt;h1 class="logo">Meitu&lt;/h1>
            &lt;/div>
            &lt;div class="user-info">
                &lt;a href="#">
                    &lt;i class="fa fa-user-o">&lt;/i>
                &lt;/a>
            &lt;/div>
        &lt;/div>
    &lt;/div>
&lt;/body>
Css部分：
* {
    margin: 0 0;
    padding: 0 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: #fff;

    &:hover {
        color: rgb(197, 196, 196);
    }
}

//导航条的外部容器
.top-bar-wrapper {
    background-color: #000;
}

.top-bar {
    max-width: 1000px;
    margin: 0 auto;
    height: 48px;
    background-color: #000;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    h1 {
        color: #fff;
    }
}

//左侧导航图标
.left-menu {
    &:hover .nav {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 48px;
        background-color: #000;
        left: 0;
        bottom: 0;
        right: 0;
        padding-top: 60px;
        transition: 0.5s;

        li {
            width: 88%;
            margin: 0 auto;
            border-bottom: 1px solid #757474;
            display: block;
            line-height: 44px;
            font-size: 14px;

            &:last-child a {
                display: inline-block;
                margin-right: 6px;
            }

            span {
                color: #fff;
                font-size: 14px;
            }
        }
    }

    .menu-icon {
        width: 18px;
        height: 48px;
        position: relative;

        li {
            width: 18px;
            height: 1px;
            background-color: #fff;
            position: absolute;
            transform-origin: left center;
            transition: 0.5s;
        }

        li:nth-child(1) {
            top: 18px;
        }

        li:nth-child(2) {
            top: 24px;
        }

        li:nth-child(3) {
            top: 30px;
        }

        &:hover {
            li:nth-child(1) {
                transform: rotateZ(40deg);
            }

            li:nth-child(2) {
                opacity: 0;
            }

            li:nth-child(3) {
                transform: rotateZ(-40deg);
            }
        }
    }
}

//媒体查询
@media only screen {
    @media (min-width:768px) {
        .left-menu {
            order: 2;
            flex: auto;

            &:hover {
                .nav {
                    display: flex;
                }
            }

            .nav {
                display: flex;
                position: static;
                padding: 0;

                li {
                    width: auto;
                    border-bottom: none;

                    a {
                        line-height: 48px;
                    }

                    span {
                        display: none;
                    }
                }
            }

            .menu-icon {
                display: none;
            }
        }

        .logo {
            order: 1;
        }

        .user-info {
            order: 3;
        }
    }
}
结果展示
          </pre>
      </p>
      <video src="../assets/c3实例视频/css3实例.mp4" width="600px" controls></video>
                <img src="../assets/images/3.65.png" alt="">
                <img src="../assets/images/3.66.png" alt="">
                <img src="../assets/images/3.67.png" alt="">
  </div>
</template>

<script>
export default {

}
</script>

<style>

</style>